package chapter01.d02;

public class Run {
	public static void main(String[] args) {
//		TicketThread1 ticket1 = new TicketThread1("12306");
//		TicketThread1 ticket2 = new TicketThread1("铁友");
//		TicketThread1 ticket3 = new TicketThread1("360抢票王");
//		ticket1.start();
//		ticket2.start();
//		ticket3.start();

		TicketThread2 ticketRunnable = new TicketThread2();
		Thread ticket1 = new Thread(ticketRunnable,"12306");
		Thread ticket2 = new Thread(ticketRunnable,"铁友火车票");
		Thread ticket3 = new Thread(ticketRunnable,"360抢票王");
		ticket1.start();
		ticket2.start();
		ticket3.start();
		
		
		
	}
	

}
